<?php

class companyTicker{
	public $companyName;
	public $exchange;
	public $tickerCode = array();
	
	public function __construct($cName, $exch, $tCode = NULL){
		$this->companyName = $cName;
		$this->exchange = $exch;
		$this->tickerCode = $tCode;
	}
	
	public function GetTicker($provName){
		return $this->tickerCode[$provName];
	}
	
	public function SetTicker($provName, $provTickerValue){
//		if(array_key_exists($provName, $this->tickerCode)){
			$this->tickerCode[$provName] = $provTickerValue;
//		}
	}

	public function GetName(){
		return $this->companyName;
	}

	public function GetExchange(){
		return $this->exchange;
	}
}

?>
